<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link rel="stylesheet" type="text/css" href="template/default/content/css/style.css">
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<script src="template/default/tree/js/admincp.js?SES" type="text/javascript"></script>
<script charset="utf-8" src="eweb/kindeditor.js"></script>
<script type="text/javascript"> 
function show_help()
{
   mytop=(screen.availHeight-430)/2;
   myleft=(screen.availWidth-800)/2;
   window.open("admin.php?ac=view&fileurl=help&helpid=<?=$fileurl?>","","height=470,width=800,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}
</script>
<title>Office 515158 2011 OA办公系统</title>
</head>
<body>
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="0" class="small">
  <tr>
    <td class="Big"><img src="template/default/content/images/notify_new.gif" align="absmiddle"><span class="big3"> 新建工作流流程</span>&nbsp;&nbsp;&nbsp;&nbsp;
	<span style="font-size:12px;"><a href="#" onClick="show_help()" style="font-size:12px;">使用帮助文档？</a>&nbsp;|&nbsp;
	<a href="http://bbs.515158.com/" target="_blank" style="font-size:12px;">使用遇到问题？</a>&nbsp;|&nbsp;
	<a href="admin.php?ac=work_flow&fileurl=work&template_id=<?=$_GET['template_id']?>&type_id=<?=$_GET['type_id']?>" style="font-size:12px;">返回列表页</a><img src="template/default/content/images/f_ico.png" align="absmiddle"></span>
    </td>
  </tr>
</table>
<script Language="JavaScript"> 
function CheckForm()
{
   if(document.save.title.value=="")
   { alert("流程名称不能为空！");
     document.save.title.focus();
     return (false);
   }
   return true;
}
function sendForm()
{
   if(CheckForm())
      document.save.submit();
}
</script>

<form name="save" method="post" action="?ac=work_flow&do=addsave&fileurl=work">
	<input type="hidden" name="savetype" value="add" />
	<input type="hidden" name="template_id" value="<?=$_GET["template_id"]?>" />
	<input type="hidden" name="type_id" value="<?=$_GET["type_id"]?>" />
<table class="TableBlock" border="0" width="90%" align="center">
   
	<tr>
      <td nowrap class="TableContent" width="15%"> 流程名称：<? get_user_add_help()?></td>
      <td class="TableData">
      <input type="text" name="title" class="BigInput" style="width:268px;" size="20" value="" /></td>
    </tr>
	<tr>
      <td nowrap class="TableContent" width="15%"> 步骤：</td>
      <td class="TableData">
	  <?php
	  $blog = $db->fetch_one_array("SELECT number FROM ".DB_TABLEPRE."workclass_flow WHERE template_id='".$_GET["template_id"]."' and type_id='".$_GET["type_id"]."' and unionid='".union_id."' ORDER BY id desc LIMIT 1");
	  $number=$blog["number"]+1;
	  echo '第'.$number.'步';
	  ?>
	  <input type="hidden" name="number" value="<?=$number?>" />
     </td>
    </tr>
	<tr>
      <td nowrap class="TableContent" width="15%"> 拟办人员：</td>
      <td class="TableData">
      <?php
	  get_oa_member_public(1,"workuser","","+选择拟办人员",80,20)
	  ?>该流程节点的审批人员
	  </td>
    </tr>
	<tr>
      <td nowrap class="TableContent" width="15%"> 流程类型：</td>
      <td class="TableData">
	  <input name="flowtype" type="radio" value="1" checked="checked"/>
	  可选
	  <input name="flowtype" type="radio" value="2"/>不可选<br>
	  注：指在提交工作流时，以上的拟办人员是否可选，正常情况下人事，人事主管，总经理以上可设成不可选
	  </td>
    </tr>
	<tr>
      <td nowrap class="TableContent" width="15%"> 类型：</td>
      <td class="TableData">
	  <input name="type" type="radio" value="1" checked="checked"/>
	  正常流程
	  <input name="type" type="radio" value="2"/>流程结束
	  </td>
    </tr>

	
    <tr align="center" class="TableControl">
      <td colspan="2" nowrap height="35">

		<input type="button" value="保存" class="BigButtonBHover" onClick="sendForm();"> 
        
      </td>
    </tr>
  </table>
</form>


 
</body>
</html>
